package com.wyx.action;

import com.wyx.entity.User;
import com.wyx.serves.UserServes;

public class UserAction extends BaseAction {
	private String username;
	private String userpass;
	public String execute(){
		UserServes userServes=new UserServes();
		User user=userServes.userSign(username, userpass);
		if(user!=null){
			getMapSession().put("username", user.getUsername());
			return "success";
		}else {
			return "fail";
		}
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getUserpass() {
		return userpass;
	}
	public void setUserpass(String userpass) {
		this.userpass = userpass;
	}
	

}
